package com.sh.personnel.service;

import com.sh.personnel.domain.ITbDepartment;
import com.sh.personnel.vo.dto.SelectTreeDto;

import java.util.List;

/**
 * 部门管理业务
 * @author 林思浩
 * @date 2020/03/16 19:25
 */
public interface IDeptService {

    //获取部门树
    List<SelectTreeDto> getDepartmentTree();

    //添加部门
    boolean addDepartment(ITbDepartment department);

    //获取部门信息
    ITbDepartment getDepartmentById(String id);

    //修改部门信息
    boolean updateDepartment(ITbDepartment department);

    //删除部门
    boolean deleteDepartmentById(String id);

}
